import request from "@/utils/request";
// 园区管理-企业列表
export function getEnterpriseListAPI(params) {
  return request({
    url: "/park/enterprise",
    method: "get",
    params,
  });
}
// 园区管理-查询企业所属行业列表
export function getIndustryListAPI() {
  return request({
    url: "/park/industry",
    method: "get",
  });
}
// 园区管理-增加企业
export function addEnterpriseAPI(data) {
  return request({
    url: "/park/enterprise",
    method: "POST",
    data,
  });
}
// 园区管理-查看企业
export function getEnterpriseDetailAPI(id) {
  return request({
    url: `/park/enterprise/${id}`,
    method: "get",
  });
}
// 园区管理-编辑企业
export function updateEnterpriseDetailAPI(data) {
  return request({
    url: "/park/enterprise",
    method: "put",
    data,
  });
}
// 园区管理-编辑企业
export function delEnterpriseDetailAPI(id) {
  return request({
    url: `/park/enterprise/${id}`,
    method: "DELETE",
  });
}
// 园区管理-添加/续租企业的租赁合同
export function addRentBuildingAPI(data) {
  return request({
    url: "/park/enterprise/rent",
    method: "POST",
    data
  });
}
// 园区管理-查询可租赁楼宇
export function getRentBuildingAPI() {
  return request({
    url: "/park/rent/building",
    method: "get",
  });
}
// 园区管理-企业租赁信息列表-展开查看
export function getEnterpriseRentAPI(id) {
  return request({
    url: `/park/enterprise/rent/${id}`,
    method: "get",
  });
}
// 园区管理-退租租赁合同
export function updateEnterpriseRentAPI(id) {
  return request({
    url: `/park/enterprise/rent/${id}`,
    method: "put",
  });
}